package org.sc.learn.server.front.service;

import org.sc.learn.server.front.model.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author qianwx
 */
@FeignClient(name = "user-server", fallback = UserHystrixClientFallback.class)
public interface UserService {

  @RequestMapping(method = RequestMethod.POST, value = "/user/register")
  User register(User user);

  @GetMapping("/user/show")
  String show();
}
